package com.lixinkeji.base

import android.os.Handler
import android.os.Looper
import com.lixinkeji.base.databinding.LayoutCommonSplashBinding


/**
 *
 * @ClassName BaseSplashActivity
 * @Author lwc
 * @Email 1679114787@qq.com
 * @Date 2022/5/21 15:09
 * @Des
 */
abstract class BaseSplashActivity : BaseActivity<LayoutCommonSplashBinding>() {

    private val handler: Handler = Handler(Looper.myLooper()!!)
    override fun startPadding() = false
    override fun topBarHide() = true
    override fun iniView() {
        handler.postDelayed({ enter() }, 3000)
    }

    open fun enter() {
        handler.removeCallbacksAndMessages(null)
    }
}